package cn.icatw.common.exception;

/**
 * 没有库存异常
 *
 * @author icatw
 * @date 2022/3/27
 * @email 762188827@qq.com
 * @apiNote
 */
public class NoStockException extends RuntimeException {
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id：" + skuId + "没有足够的库存了");
    }
    public NoStockException(String msg) {
        super(msg);
    }
    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }



}
